﻿using AutoMapper;
using BCDto.Location.Driver;
using BCDto.TMS.Driver;
using BCMongoEntity.TMS.Location.Driver;

namespace BCService.MapperProfiles.TMS.Location.Driver
{
    public class DriverLocationProfile : Profile
    {
        public DriverLocationProfile()
        {
            CreateMap<DriverDto, DriverLocationEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<DriverLocationEntity, DriverLocationBsonDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<DriverLocationBsonDto, DriverLocationNearDto>().IgnoreAllPropertiesWithAnInaccessibleSetter(); 
        }
    }
}
